package
{
	import flash.display.BlendMode;
	import flash.display.Graphics;
	import flash.display.Sprite;

	public class PIXEL_ART extends Sprite
	{
		public function PIXEL_ART()
		{
			var t:Sprite = getLoaderBar();
			addChild(t);
		}
		
		public static function getLoaderBar():Sprite
		{
			var s:Sprite = new Sprite();
			s.blendMode = BlendMode.MULTIPLY;
			
			var g:Graphics = s.graphics;
			g.clear();
			g.beginFill( 0x222222 );
			g.drawRect(15, 0, 15, 1 );
			g.drawRect(14, 1, 15, 1 );
			g.drawRect(13, 2, 15, 1 );
			g.drawRect(12, 3, 15, 1 );
			g.drawRect(11, 4, 15, 1 );
			g.drawRect(10, 5, 15, 1 );
			g.drawRect(9, 6, 15, 1 );
			g.drawRect(8, 7, 15, 1 );
			g.drawRect(7, 8, 15, 1 );
			g.drawRect(6, 9, 15, 1 );
			g.drawRect(5, 10, 15, 1 );
			g.drawRect(4, 11, 15, 1 );
			g.drawRect(3, 12, 15, 1 );
			g.drawRect(2, 13, 15, 1 );
			g.drawRect(1, 14, 15, 1 );
			g.drawRect(0, 15, 15, 1 );
			
			return s;
		}
	}
}